<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>JSP 主页</title>
</head>
<body>
<%
    // 通过 JSP 内置对象输出内容
    pageContext.getResponse().getWriter().write("tomcat2");
%>

</body>
</html>